import Mock from 'mockjs'
import loginAPI from './login'

Mock.setup({
  timeout: '350-600' // 设置延迟响应，模拟向后端请求数据
})
// 登录相关
Mock.mock(/\/user\/login/, 'post', loginAPI.loginByUsername)
Mock.mock(/\/user\/logout/, 'post', loginAPI.logout)
Mock.mock(/\/user\/info\.*/, 'get', loginAPI.getUserInfo)

// Mock.mock(/\/purchasingManagement\/list\.*/, 'get', purchaseAPI.getList)
export default Mock
